
package parser.lr;

/**
 * Acción dentro de una tabla LR. Incluye go-to.
 */
public class LRAction {
	
	private final LRAction.Type type;
	private final Integer value;
	
	public LRAction(LRAction.Type type, Integer value) {
		this.type = type;
		this.value = value;
	}
	
	public LRAction.Type getType() {
		return this.type;
	}
	
	public Integer getValue() {
		return this.value;
	}
	
	public enum Type {
		SHIFT, REDUCE, ACCEPT, GOTO;
	}
	
}
